package com.fy.service.component.model.entity.fyenum;

/**
 * mq处理类标识枚举
 */
public enum MQHandlerEnum {
    AUDIT_RECORD_STATISTICS_HANDLER(0, "", "统计、打码量"),
    USER_STATISTICS_HANDLER(1, "com.fy.core.component.handle.statistics.UserStatisticsHandler#handleMsg", "用户统计"),
    AGENT_STATISTICS_HANDLER(2, "com.fy.core.component.handle.statistics.AgentStatisticsHandler#handleBillMsg", "代理统计"),
    AUDIT_RECORD_HANDLER(3, "", "入款稽核"),
    WATER_RECORD_HANDLER(4, "", "打码量"),
    PROXY_COMMITION_REDIRECT_HANDLER(5, "", "流水分佣"),
    ;


    int id;
    String path;
    String description;

    private MQHandlerEnum(final int id, final String path, final String description) {
        this.id = id;
        this.path = path;
        this.description = description;
    }

    public static MQHandlerEnum get(int id) {
        for (MQHandlerEnum value : values()) {
            if (value.getId() == id) {
                return value;
            }
        }
        return null;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
